package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.ZhwyPaymentmethodMapper;
import com.ruoyi.domain.ZhwyPaymentmethod;
import com.ruoyi.service.IZhwyPaymentmethodService;

/**
 * 支付方式Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-07
 */
@Service
public class ZhwyPaymentmethodServiceImpl implements IZhwyPaymentmethodService 
{
    @Autowired
    private ZhwyPaymentmethodMapper zhwyPaymentmethodMapper;

    /**
     * 查询支付方式
     * 
     * @param id 支付方式主键
     * @return 支付方式
     */
    @Override
    public ZhwyPaymentmethod selectZhwyPaymentmethodById(Long id)
    {
        return zhwyPaymentmethodMapper.selectZhwyPaymentmethodById(id);
    }

    /**
     * 查询支付方式列表
     * 
     * @param zhwyPaymentmethod 支付方式
     * @return 支付方式
     */
    @Override
    public List<ZhwyPaymentmethod> selectZhwyPaymentmethodList(ZhwyPaymentmethod zhwyPaymentmethod)
    {
        return zhwyPaymentmethodMapper.selectZhwyPaymentmethodList(zhwyPaymentmethod);
    }

    /**
     * 新增支付方式
     * 
     * @param zhwyPaymentmethod 支付方式
     * @return 结果
     */
    @Override
    public int insertZhwyPaymentmethod(ZhwyPaymentmethod zhwyPaymentmethod)
    {
        return zhwyPaymentmethodMapper.insertZhwyPaymentmethod(zhwyPaymentmethod);
    }

    /**
     * 修改支付方式
     * 
     * @param zhwyPaymentmethod 支付方式
     * @return 结果
     */
    @Override
    public int updateZhwyPaymentmethod(ZhwyPaymentmethod zhwyPaymentmethod)
    {
        return zhwyPaymentmethodMapper.updateZhwyPaymentmethod(zhwyPaymentmethod);
    }

    /**
     * 批量删除支付方式
     * 
     * @param ids 需要删除的支付方式主键
     * @return 结果
     */
    @Override
    public int deleteZhwyPaymentmethodByIds(Long[] ids)
    {
        return zhwyPaymentmethodMapper.deleteZhwyPaymentmethodByIds(ids);
    }

    /**
     * 删除支付方式信息
     * 
     * @param id 支付方式主键
     * @return 结果
     */
    @Override
    public int deleteZhwyPaymentmethodById(Long id)
    {
        return zhwyPaymentmethodMapper.deleteZhwyPaymentmethodById(id);
    }
}
